import instance from "./axios";

export const loginapi = (data: { username: string, password: string }) => {
    return instance({
        url: 'login',
        method: 'post',
        data: {
            ...data
        }
    })
}